package hello04.controller;

import common05.common.Results;
import hello04.service.TUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {

    @Autowired
    private TUserService tUserService;


    @GetMapping("hello04")
    public Results hello04() {
        log.info("当前登录用户为:userId=[{}]", tUserService.getCurrentUserId());
        return Results.success("hello 04");
    }

}
